/**
 * @author Aaron
 * @createTime 16:50 2022/5/16
 **/
package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type TaskReward struct {
	Id         int   `gorm:"column:id;primaryKey"` //ID
	TaskId     int   `gorm:"column:task_id"`       //任务ID
	RewardType uint8 `gorm:"column:reward_type"`   //奖励类型:0-经验,1-gold鹰钻,2-diamond克拉,3-礼物
	// 4-贵族卡 5-道具 6-转盘抽奖次数
	GiftId   uint16 `gorm:"column:gift_id"`  //礼物ID,非礼物类型填充0
	PropsId  uint16 `gorm:"column:props_id"` //道具ID,非道具类型填充0
	Quantity uint32 `gorm:"column:quantity"` //数目
}

func (TaskReward) TableName() string {
	return fmt.Sprintf("%stask_reward", models.Prefix)
}
